<!--Copyright (C) Kherty.  All rights reserved.-->
<ResourceDictionary
    x:Class="OpenLS.Chart.UI.MarkerPropertiesResources"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:chart="http://schemas.Kherty.com/office/2007/chart"
    xmlns:chartui="clr-namespace:OpenLS.Chart.UI"
    xmlns:Internals="clr-namespace:OpenLS.Chart.UI.Internals"
    xmlns:System="clr-namespace:System;assembly=mscorlib"
    xmlns:UI="clr-namespace:OpenLS.UI;assembly=OpenLS.UI">
    <DataTemplate DataType="{x:Type chart:Marker}">
        <GroupBox Header="{x:Static Internals:UIStringTable.MarkerType}">
            <StackPanel chartui:SeriesElement.Marker="{Binding}">
                <RadioButton Content="{x:Static Internals:UIStringTable.Automatic}" Loaded ="AutomaticLoaded"  Click="OnAutomaticClick"/>

                <RadioButton Content="{x:Static Internals:UIStringTable.None}"  Loaded="NoneLoaded" Click="OnNoneClick"/>
                <RadioButton Content="{x:Static Internals:UIStringTable.BuiltIn}" Loaded="BuiltInLoaded" Click="OnBuiltInClick" Name="BuiltIn" Tag="{Binding ElementName=cb}"/>
                <ComboBox Loaded="ComboBox_Loaded" 
                          ItemsSource="{Binding}" Name="cb" IsEnabled="{Binding ElementName=BuiltIn, Path=IsChecked}"
                          SelectionChanged="cb_SelectionChanged">
                    <ComboBox.ItemTemplate>
                        <DataTemplate>
                            <Path Fill="Black" Stroke="Black" StrokeThickness="1" Height="15">
                                <Path.Data>
                                    <MultiBinding>
                                        <MultiBinding.Converter>
                                            <chartui:MarkerStyleSizeToPathDataConverter></chartui:MarkerStyleSizeToPathDataConverter>
                                        </MultiBinding.Converter>
                                        <Binding></Binding>
                                        <Binding>
                                            <Binding.Source><System:Int32>10</System:Int32></Binding.Source>
                                        </Binding>
                                        
                                    </MultiBinding>
                                </Path.Data>
                            </Path>
                        </DataTemplate>
                    </ComboBox.ItemTemplate>
                </ComboBox>
                <UI:NumericUpDown Value="{Binding Size}" SmallChange="1" LargeChange="1" Maximum="70"/>
            </StackPanel>
        </GroupBox>
    </DataTemplate>
    
</ResourceDictionary>